package edu.sctu.zhoumengxue.day201505.day20150517.textone;


/**
 * Created by user12 on 2015/5/17.
 */
public class TextChildTwo extends Abstraction implements Mouth{
    public String name;

    public int age;

    public Student[] students;

    public Student[] student = new Student[students.length];

    public TextChildTwo(Student[] studentarrays) {
        super(studentarrays);
        this.student = studentarrays;
    }

    @Override
    public void system() {
        for (int i = 0; i < 10; i++) {
            if (student[i].getNumber() > 10) {
                if (student[i].getSex().equals("女" + i)) {
                    System.out.println(student[i].getName() + ";" + student[i].getAge() + ";" + student[i].getNumber() + ";" + student[i].getSex());
                }

            }

        }


    }

    @Override
    public void getSystem(String name) {
        this.name = name;

    }

    @Override
    public void getOut(int age) {
        this.age = age;
    }
}
